package com.loveprogrammer.eternity.skill.support.states;

import com.loveprogrammer.eternity.model.Character;
import com.loveprogrammer.eternity.model.console.ConsolePrint;

import java.util.List;

/**
 * @version 1.0.0
 * @description: 减甲
 * @author: eric
 * @date: 2022-08-16 16:45
 **/
public class ArmourReductionState extends AbstractNegativeState{

    private final int reduceArmour;

    public ArmourReductionState(Character character, List<? extends Character> camp, int reduceArmour) {
        super(character,camp);
        this.reduceArmour = reduceArmour;
    }

    @Override
    public int id() {
        return 2;
    }

    @Override
    public String name() {
        return "减甲";
    }

    @Override
    public String desc() {
        return "减甲";
    }

    @Override
    public void doReset() {
        getCharacter().setArmature(getCharacter().getArmature() + reduceArmour);
    }

    @Override
    public int counterId() {
        return 98;
    }

    @Override
    public void run() {
        // 如果已经死了就算了
        if(this.getCharacter().checkDead()){
            return;
        }
        // 否则
        else{
            // 减少护甲就一次性的操作
        }
    }
}
